package com.powergisol.gis.dao;

import com.powergisol.gis.entity.TabYc;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface TabYcMapper {

    void saveTabYc(TabYc yc);

    void upTabYc(TabYc yc);

    TabYc selectYcByUuid(@Param("uuid") String uuid);

    List<TabYc> getYcList(TabYc tabYc);

    void delYc(@Param("uuid") String uuid);

    void delYcUserService(@Param("serviceId") String serviceId);

    void delYcTree(@Param("layerIds") String layerIds);

    void delLayerTree(@Param("layerIds") String layerIds);

    void delService(@Param("uuid") String uuid);

    Map<String,Object> selectUserService(@Param("uuid") String uuid);

    String selectLayerByServiceIds(@Param("serviceIds") String serviceIds);

    List<TabYc> getYcListState(@Param("state") Integer state);

    Integer checkYcName(@Param("ycName") String ycName);

    void delDataSetting(String uuid);
}
